package com.stylefeng.guns.modular.system.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品品牌
 * </p>
 *
 * @author greedwind
 * @since 2018-09-28
 */
@TableName("t_item_brand")
public class ItemBrand extends Model<ItemBrand> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId("brand_id")
    private String brandId;
    /**
     * 所属分类id(以^分隔)
     */
    @TableField("category_ids")
    private String categoryIds;
    /**
     * 品牌名称（中文）
     */
    @TableField("brand_name")
    private String brandName;
    /**
     * 品牌名称（英文）
     */
    @TableField("brand_name_en")
    private String brandNameEn;
    /**
     * 描述
     */
    @TableField("brand_short_desc")
    private String brandShortDesc;
    /**
     * 品牌logo
     */
    @TableField("brand_logo")
    private String brandLogo;
    /**
     * 品牌状态：1、有效；0、无效
     */
    @TableField("is_enabled")
    private Integer isEnabled;
    /**
     * 品牌官方地址
     */
    @TableField("brand_url")
    private String brandUrl;
    /**
     * 品牌故事
     */
    @TableField("brand_desc")
    private String brandDesc;
    /**
     * 排序号(排序号越小越靠前)
     */
    @TableField("sort_num")
    private Integer sortNum;
    /**
     * 创建时间
     */
    private Date created;
    /**
     * 修改时间
     */
    private Date modified;


    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(String categoryIds) {
        this.categoryIds = categoryIds;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getBrandNameEn() {
        return brandNameEn;
    }

    public void setBrandNameEn(String brandNameEn) {
        this.brandNameEn = brandNameEn;
    }

    public String getBrandShortDesc() {
        return brandShortDesc;
    }

    public void setBrandShortDesc(String brandShortDesc) {
        this.brandShortDesc = brandShortDesc;
    }

    public String getBrandLogo() {
        return brandLogo;
    }

    public void setBrandLogo(String brandLogo) {
        this.brandLogo = brandLogo;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public String getBrandUrl() {
        return brandUrl;
    }

    public void setBrandUrl(String brandUrl) {
        this.brandUrl = brandUrl;
    }

    public String getBrandDesc() {
        return brandDesc;
    }

    public void setBrandDesc(String brandDesc) {
        this.brandDesc = brandDesc;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    @Override
    protected Serializable pkVal() {
        return this.brandId;
    }

    @Override
    public String toString() {
        return "ItemBrand{" +
        "brandId=" + brandId +
        ", categoryIds=" + categoryIds +
        ", brandName=" + brandName +
        ", brandNameEn=" + brandNameEn +
        ", brandShortDesc=" + brandShortDesc +
        ", brandLogo=" + brandLogo +
        ", isEnabled=" + isEnabled +
        ", brandUrl=" + brandUrl +
        ", brandDesc=" + brandDesc +
        ", sortNum=" + sortNum +
        ", created=" + created +
        ", modified=" + modified +
        "}";
    }
}
